<?php
/**
 * Created by PhpStorm.
 * User: gakuin
 * Date: 16/8/28
 * Time: 下午2:14
 */
namespace app\models;

use yii\base\Model;

class ResetPwdStep3Form extends Model{
    public $password;
    public $password2;

    public function rules()
    {
        return [
            ['password', 'required','message'=>'密码不能为空'],
            ['password2','compare','compareAttribute'=>'password','message'=>'两次密码必须一致'],
        ];
    }
    public function attributeLabels()
    {
        return [
            'password' => '新密码',
            'password2'=>'确认密码',
        ];
    }
}